"""
配置信息
"""

class Config():
    ENV = 'default'
    WIFI_SSID = '你的wifi的ssid'  # 请改成自己的
    WIFI_PASSWORD = '你的wifi密码'  # 请改成自己的
    NTP_SERVER_LIST = ["ntp2.aliyun.com", "ntp3.aliyun.com", "ntp4.aliyun.com"]
    
    MQTT_ID_BEMFA = '你的物联网平台id'  # 请改成自己的
    MQTT_HOST_BEMFA = 'bemfa.com'
    MQTT_PORT_BEMFA = 9501
    

    
    
class DevelopmentConfig(Config):
    ENV = 'development'
    SUBJECT_SET = ''
    SUBJECT_SUBSCRIBE = 'test01'
    SUBJECT_PUBLISH = 'weather01'
    SUBJECT_WILL = 'lwt01'
    
    INTERVAL_WEATHER_DATA = 60_000*1  # 读取气象数据的间隔
    INTERVAL_CALIBRATION_TIME = 3600_000*1  # 校时的间隔



class ProductionConfig(Config):
    ENV = 'production'
    SUBJECT_SET = ''
    SUBJECT_SUBSCRIBE = 'test01'
    SUBJECT_PUBLISH = 'weather01'
    SUBJECT_WILL = 'lwt01'
    
    INTERVAL_WEATHER_DATA = 3600_000  # 读取气象数据的间隔
    INTERVAL_CALIBRATION_TIME = 3600_000*24  # 校时的间隔